package com.aaa.web.commons;

import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;
/**
* @description: 广告按条件查询辅助类
* @author: 王林林
* @create: 2018/12/28 19:25
**/
public class NoticeQuery {

    private Integer page;
    private Integer limit;
    private String name;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Data createtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Data updatetime;
    private String type;

    public NoticeQuery() {
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Data getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Data createtime) {
        this.createtime = createtime;
    }

    public Data getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Data updatetime) {
        this.updatetime = updatetime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "NoticeQuery{" +
                "page=" + page +
                ", limit=" + limit +
                ", name='" + name + '\'' +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", type='" + type + '\'' +
                '}';
    }
}
